﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="RSManageLocation.aspx.cs" Inherits="mojoPortal.Web.RS.SBM.RSManageLocation" %>
<%@ Register Src="~/rs/controls/modalactionmessagecontrol.ascx" TagName="ModalActionMessageControl" TagPrefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">

<asp:Panel ID="pnlLookupLocation" runat="server">
    <asp:GridView ID="gvLookupLocation" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="LocationId" 
        ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="gvLookupLocation_SelectedIndexChanged" OnPageIndexChanging="gvLookupLocation_PageIndexChanging" OnSorting="gvLookupLocation_Sorting" Width="100%">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/RS/Images/checkmark.gif"/>
        <asp:BoundField DataField="LocationId" HeaderText="LocationId" InsertVisible="False" ReadOnly="True" SortExpression="LocationId" />
        <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
        <asp:BoundField DataField="County" HeaderText="County" SortExpression="County" />
        <asp:BoundField DataField="State" HeaderText="State" SortExpression="State" />
        <asp:BoundField DataField="Zip" HeaderText="Zip" SortExpression="Zip" />
        <asp:BoundField DataField="Street" HeaderText="Street" SortExpression="Street" />
        <asp:BoundField DataField="LocationName" HeaderText="LocationName" SortExpression="LocationName" />
        <%--<asp:CheckBoxField DataField="Active" HeaderText="Active" SortExpression="Active" />--%>
    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#EFF3FB" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F5F7FB" />
    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
    <SortedDescendingCellStyle BackColor="#E9EBEF" />
    <SortedDescendingHeaderStyle BackColor="#4870BE" />
    <EmptyDataTemplate><br />
            <center><asp:Label ID="lblNoRecordFound" runat="server" Text="No Match Found" Font-Bold="True" ForeColor="Silver"></asp:Label></center>
    </EmptyDataTemplate>
    </asp:GridView>
</asp:Panel>

<asp:Panel ID="pnlLocationInformation" runat="server">
<fieldset><legend>Location Information</legend>
<table>
<tr><td colspan="2"></td></tr>
<tr><td width="100" align="right">Service Call ID:</td><td><asp:TextBox ID="txtCallId" runat="server" BackColor="#CCCCCC" ReadOnly="True" Width="40px" /></td></tr>
<tr><td width="100" align="right">Location ID:</td><td><asp:TextBox ID="txtLocationId" runat="server" BackColor="#CCCCCC" ReadOnly="True" Width="40px" /></td></tr>
<tr><td align="right" nowrap>Location/Subdivision Name:</td><td><asp:TextBox ID="txtLocationName" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">Street:</td><td><asp:TextBox ID="txtStreet" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">City:</td><td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">County:</td><td><asp:TextBox ID="txtCounty" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">State:</td><td><asp:TextBox ID="txtState" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">Zip:</td><td><asp:TextBox ID="txtZip" runat="server"></asp:TextBox></td></tr>
<tr><td align="right">Note:</td><td><asp:TextBox ID="txtLocationNote" runat="server" Height="100px" Width="350px" TextMode="MultiLine"></asp:TextBox></td></tr>
<tr><td></td><td>
<asp:Button ID="btnSaveLocation" runat="server" Text="Save" enabled="false" onclick="btnSave_Click" CausesValidation="true"/>
<asp:Button ID="btnDeleteLocation" runat="server" Text="Delete" enabled="false" onclick="btnDelete_Click" CausesValidation="false"/>
<asp:Button ID="btnReturn" runat="server" Text="Return" enabled="true" onclick="btnReturn_Click" CausesValidation="false"/>
</table>
</fieldset>
<ajaxToolkit:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="btnDeleteLocation" ConfirmText="Are you sure you want to delete this Location?"/>
</asp:Panel>
<uc1:ModalActionMessageControl ID="ucModalActionMessageControl" runat="server"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>

